#include <iostream>
#include <chrono>
#include "Fakultet.h"
#include "Watch.h"
using namespace std;
using namespace Course;

int main()
{
	Fakultet f;
	Watch w;
	int r, k;
	Course::microseconds t0;
	double time;
	w.restart();
	for (int j = 1; j < 100; j++)
	{
		for (long double i = 0; i < 10000000; i++)
		{	
			r = f.rekursiv(10);
			k = f.iterativ(10);
		}
		cout << j*10 << " millioner" << endl;
	}
	t0 = w.elapsedUs();
	time = t0.count();
	cout << time/1000000 << endl;
	cout << "Rekursivt: " << r << endl;
	cout << "Iterativ: " << k << endl;
	system("PAUSE");
	return 0;
}